package com.huluobo.a2203monthdemo.aapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2203monthdemo.R
import com.huluobo.base.bean.NewsBeanItem

/**
 *  Created by LC on 2024/8/9.
 */
class NewsAdapter : BaseQuickAdapter<NewsBeanItem, BaseViewHolder>(R.layout.item_news) {
    override fun convert(helper: BaseViewHolder, item: NewsBeanItem) {
        helper.setText(R.id.item_news_title_tv, item.newsTitle)
        helper.setText(R.id.item_news_time_tv, item.newsTime)
        helper.setText(R.id.item_news_value_tv, item.newsValue)

    }
}